package com.sj.common.dto.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-03-11
 * Time: 下午 14:49
 * Description: 注册传参对象
 *
 * @author xiaoqi
 * @since 2022-03-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("注册传参对象")
public class RegParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty("验证码")
    @NotBlank(message = "验证码不能为空")
    private String code;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty("重复密码")
    @NotBlank(message = "重复密码不能为空")
    private String rpassword;

}